import Vue from 'vue'
import Router from 'vue-router'
import Hello from '../pages/Hello.vue'
import Xianshi from '../pages/Xianshi.vue'
import Last from '../pages/Last.vue'

import Liang from '../pages/Liang.vue'
import More from '../pages/More.vue'
import Shang from '../pages/Shang.vue'
import GeRen from '../pages/GeRen.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Hello
    }, {
      path: '/hello/xianshi/:id/:albumid',
      component: Xianshi
    },
    // 三级的页面
    {
      path: '/xianshi/last/:id',
      component: Last
    },
    // 商品分类的跳转
    {
      path: '/liang',
      component: Liang
    },
    // 更多分类的跳转
    {
      path: '/more',
      component: More
    },
    // 商店
    {
      path: '/shang',
      component: Shang
    },
    // {
    //   path: '/xianshi/:id/:albumid/geren/:myid',
    //   component: GeRen
    // }
  ]
})
